<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>Lglspace‘s Blog</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="lglspace" /><meta name="description" content="Lglspace Technology Blog." /><meta name="keywords" content="lglspace, blog, lgl" />






<meta name="generator" content="Hugo 0.79.0 with theme even" />


<link rel="canonical" href="https://lglspace.cn/" />
  <link href="https://lglspace.cn/index.xml" rel="alternate" type="application/rss+xml" title="Lglspace‘s Blog" />
  <link href="https://lglspace.cn/index.xml" rel="feed" type="application/rss+xml" title="Lglspace‘s Blog" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.b5a744db6de49a86cadafb3b70f555ab443f83c307a483402259e94726b045ff.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<link rel="stylesheet" href="/css/even-custom.css">


<meta property="og:title" content="Lglspace‘s Blog" />
<meta property="og:description" content="Lglspace Technology Blog." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://lglspace.cn/" />
<meta property="og:updated_time" content="2021-05-04T23:50:38+08:00" />
<meta itemprop="name" content="Lglspace‘s Blog">
<meta itemprop="description" content="Lglspace Technology Blog.">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Lglspace‘s Blog"/>
<meta name="twitter:description" content="Lglspace Technology Blog."/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Lglspace</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">主页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Lglspace</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">主页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <section id="posts" class="posts">
    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/nginx/nginx-linux-install/">Nginx在CentOS7上安装</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-10-21 </span>
      <div class="post-category">
          <a href="/categories/nginx/"> nginx </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      准备 1 yum -y install gcc pcre-devel zlib-devel openssl openssl-devel 下载 下载地址：https://nginx.org/download/ 安装 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ##
    </div>
    <div class="read-more">
      <a href="/post/nginx/nginx-linux-install/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/site/hugo-algolia/">Hugo添加Algolia搜索支持</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-10-21 </span>
      <div class="post-category">
          <a href="/categories/hugo/"> Hugo </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      注册Algolia账号,创建应用及索引 网站： https://www.algolia.com Hugo生成索引文件 修改配制config.toml 修改 config.toml 文件声明需要生成Algolia索引文件
    </div>
    <div class="read-more">
      <a href="/post/site/hugo-algolia/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/mac/mac-homebrew-updating/">brew一直卡在Updating Homebrew</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-10-20 </span>
      <div class="post-category">
          <a href="/categories/mac/"> Mac </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      方法一：直接关闭brew每次执行命令时的自动更新（推荐） 1 2 3 vim ~/.bash_profile # 新增一行 export HOMEBREW_NO_AUTO_UPDATE=true 方法二：替换brew源 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
    </div>
    <div class="read-more">
      <a href="/post/mac/mac-homebrew-updating/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/nginx/nginx-mac-install/">Nginx在Mac上安装</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-10-15 </span>
      <div class="post-category">
          <a href="/categories/nginx/"> nginx </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      基本操作 1 2 3 4 5 6 7 8 # 是否已存在nginx which nginx # 安装nginx brew install nginx # 启动nginx nginx # 关闭nginx nginx -s stop 安装成功标志 ==&gt; nginx Docroot is: /usr/local/var/www The default port
    </div>
    <div class="read-more">
      <a href="/post/nginx/nginx-mac-install/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/vue/vue-dev-env/">vue开发环境搭建</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-05-24 </span>
      <div class="post-category">
          <a href="/categories/vue/"> vue </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      vue开发环境搭建 1 2 3 npm install -g @vue/cli # OR yarn global add @vue/cli 1 2 3 4 5 6 vue create promyth-stulab-vue cd promyth-stulab-vue // 启动项目 yarn serve // 生产环境打包 yarn build
    </div>
    <div class="read-more">
      <a href="/post/vue/vue-dev-env/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/java/java-docker-sonarqube/">docker安装sonarqube</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-05-08 </span>
      <div class="post-category">
          <a href="/categories/java/"> java </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      拉取镜像，启动容器 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #拉取数据库 docker pull postgres # 拉取sonarqube docker pull sonarqube #启动postgresql docker run --name db-sonar -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar
    </div>
    <div class="read-more">
      <a href="/post/java/java-docker-sonarqube/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/java/java-idea-junit-test/">IDEA下Gradle运行Junit测试报Execution failed for task &#39;:test&#39;</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-05-08 </span>
      <div class="post-category">
          <a href="/categories/java/"> java </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      问题描述 org.gradle.api.tasks.TaskExecutionException: Execution failed for task &lsquo;:test&rsquo;. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84) 解决办法 idea设置：Settings &gt; Build,Execution,Deployment &gt; Build Tools &gt; Gradle &gt; build and run &gt; “Run tests using:” 把 gradle(default) 替换成IntelliJ IDEA
    </div>
    <div class="read-more">
      <a href="/post/java/java-idea-junit-test/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/linux/centos-hostname/">centos7修改主机名</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-05-08 </span>
      <div class="post-category">
          <a href="/categories/linux/"> linux </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      设置hostname 1 2 # 使用这个命令会立即生效且重启也生效 hostnamectl set-hostname centos7-106 或者修改文件vim /etc/hostname 需要执行systemctl restart network生效 修改文件
    </div>
    <div class="read-more">
      <a href="/post/linux/centos-hostname/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/mac/mac-unzip-rar/">mac命令行解压rar文件</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-05-08 </span>
      <div class="post-category">
          <a href="/categories/mac/"> mac </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      安装unrar 1 brew install unrar 解压文件到当前目录 1 unrar x test.rar
    </div>
    <div class="read-more">
      <a href="/post/mac/mac-unzip-rar/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/ide/eclipse-shortcut/">Eclipse快捷键</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-28 </span>
      <div class="post-category">
          <a href="/categories/eclipse/"> eclipse </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      Windows下的操作 快捷键 功能说明 F3 进入类或方法体 Ctrl+Shift+X 大写 Ctrl+Shift+Y 小写 Ctrl+Shift+G 查看在哪里被调用 SHIFT+ALT+A 多行编辑 Ctrl+Shift+F 格式化代码 同时进行多行编辑 在编辑的时候按下 SH
    </div>
    <div class="read-more">
      <a href="/post/ide/eclipse-shortcut/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/ide/eclipse-tab-space/">Eclipse设置tab缩进为四个空格</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-28 </span>
      <div class="post-category">
          <a href="/categories/eclipse/"> eclipse </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      设置Text Editors Preferences -&gt; General -&gt; Editors -&gt; Text Editors，勾选Insert spaces for tabs，点击Apply 设置 Java Formatter Preferences -&gt; Java &gt; Code Style -&gt; Formatter, 点击New&hellip;；
    </div>
    <div class="read-more">
      <a href="/post/ide/eclipse-tab-space/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/maven/maven-relate/">maven常用操作备忘</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/maven/"> maven </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      导出项目依赖的jar包 1 mvn dependency:copy-dependencies -DoutputDirectory=lib
    </div>
    <div class="read-more">
      <a href="/post/maven/maven-relate/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/angular/angular-route-reuse/">Angular中自定义路由复用策略</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/angular/"> angular </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      页面前进后退时，能保持之前的状态。 代码实现 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
    </div>
    <div class="read-more">
      <a href="/post/angular/angular-route-reuse/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/git/gitlab-install-docker/">docker安装gitlab备忘（转载）</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/git/"> git </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      拉取镜像 1 docker pull gitlab/gitlab-ce gitlab-ce为稳定版本，后面不填写版本则默认pull最新latest版本 启动容器 1 2 3 4 5 docker run -d -p 443:443 -p 80:80 -p 222:22 --name gitlab --restart always -v
    </div>
    <div class="read-more">
      <a href="/post/git/gitlab-install-docker/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/docker/docker-problem/">docker常见问题处理</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/docker/"> docker </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      问题列表 windows下启动容器报错：docker: Error response from daemon: Drive has not been shared 处理方法 1 2 3 4 右击“docker desktop is runing”(电脑右下角) 点击
    </div>
    <div class="read-more">
      <a href="/post/docker/docker-problem/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/docker/docker-image-accelerate/">docker镜像加速设置</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/docker/"> docker </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      复制镜像地址 登录阿里云网址 1 https://cr.console.aliyun.com 1 镜像中心 &gt; 镜像加速器 &gt; 复制镜像地址 配制镜像地址 桌面顶栏的 docker图标, 选择 Preferences, 在 Daemon 标签 下的 Registry mirrors 列表中粘贴所
    </div>
    <div class="read-more">
      <a href="/post/docker/docker-image-accelerate/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/ide/eclipse-relate/">eclipse常用操作备忘</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/eclipse/"> eclipse </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      eclipse静态导入，自动提示静态方法 Window-&gt;Preferences-&gt;Java-&gt;Editor-&gt;Content Assist-&gt;Favorites 在以上位置添加相应的类，比如：org.junit.jupiter.api.Assertions 问
    </div>
    <div class="read-more">
      <a href="/post/ide/eclipse-relate/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/postgresql/postgresql-pgpass-conf/">PostgreSQL密码文件配置</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/postgresql/"> postgresql </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      PostgreSQL密码文件可以免除手动输入密码的痛苦，在数据备份等需要手动输入密码的场景下较实用。 一、文件路径 linux在home路径下新
    </div>
    <div class="read-more">
      <a href="/post/postgresql/postgresql-pgpass-conf/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/sourcetree/sourcetree-jump-regist/">sourcetree安装时如何跳过注册</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/sourcetree/"> sourcetree </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      windows环境 在目录下 1 %LocalAppData%\Atlassian\SourceTree\ 创建account.json 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [ { &#34;$id&#34;: &#34;1&#34;, &#34;$type&#34;: &#34;SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity&#34;, &#34;Authenticate&#34;: true, &#34;HostInstance&#34;: { &#34;$id&#34;: &#34;2&#34;, &#34;$type&#34;: &#34;SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount&#34;, &#34;Host&#34;:
    </div>
    <div class="read-more">
      <a href="/post/sourcetree/sourcetree-jump-regist/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/mac/mac-special-char/">如何在Mac中插入特殊符号</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/mac/"> mac </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      在菜单栏中显示虚拟键盘及表情检视器 打开键盘偏好设置，选择: 在菜单栏中显示虚拟键盘及表情检视器 点击输入法，选择：显示表情与符 选择相应的符号，进
    </div>
    <div class="read-more">
      <a href="/post/mac/mac-special-char/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/git/gitlab-service-docker-compose/">通过docker-compose搭建gitlab服务</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/git/"> git </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      创建docker-compose.yml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 version:&#39;3.6&#39;services:gitlab:container_name:gitlabimage:&#39;gitlab/gitlab-ce&#39;hostname:&#39;192.168.12.16&#39;restart:alwaysenvironment:GITLAB_OMNIBUS_CONFIG:|external_url &#39;http://192.168.12.16&#39;ports:- &#39;80:80&#39;- &#39;443:443&#39;- &#39;22:22&#39;volumes:- &#39;/tmp/gitlab/conf:/etc/gitlab&#39;- &#39;/tmp/gitlab/data:/var/opt/gitlab&#39;- &#39;/tmp/gitlab/logs:/var/log/gitlab&#39; 启动服务 1 docker-compose up -d --build 感言 本来是想在windows上
    </div>
    <div class="read-more">
      <a href="/post/git/gitlab-service-docker-compose/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/docker/docker-aliyun-trans/">阿里云镜像仓库中镜像的推送及拉取</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-25 </span>
      <div class="post-category">
          <a href="/categories/docker/"> docker </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      推送镜像至阿里云镜像仓库 1 2 3 4 5 6 # 登录 docker login --username=abc registry.cn-hangzhou.aliyuncs.com # 重命名镜像，非Docker官方镜像仓库需要把仓库域名加上 tag ce941d6893d6 registry.cn-hangzhou.aliyuncs.com/lglspace/jre1.8-alpine:v1.0.0 # 推送镜像 docker push registry.cn-hangzhou.aliyuncs.com/lglspace/jre1.8-alpine:v1.0.0 从阿里云镜
    </div>
    <div class="read-more">
      <a href="/post/docker/docker-aliyun-trans/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/postgresql/postgresql-relate/">postgresql常用操作备忘</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-18 </span>
      <div class="post-category">
          <a href="/categories/postgresql/"> postgresql </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      数据库常用操作 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 #指定用户登录到本地的指定库
    </div>
    <div class="read-more">
      <a href="/post/postgresql/postgresql-relate/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    <article class="post">
  <header class="post-header">
    <h1 class="post-title"><a class="post-link" href="/post/postgresql/postgresql-install/">postgresql相关笔记</a></h1>
    <div class="post-meta">
      <span class="post-time"> 2020-04-18 </span>
      <div class="post-category">
          <a href="/categories/postgresql/"> postgresql </a>
          </div>
    </div>
  </header>
  
  <div class="post-content">
    <div class="post-summary">
      Mac下安装 brew安装 1 brew install postgresql 初始化数据库 1 initdb /Users/lglspace/appdata/postgres 启动数据库 1 pg_ctl -D /Users/lglspace/appdata/postgres -l /Users/lglspace/appdata/logs/postgres.log start docker启动 1 docker run --name postgres -d -p 5432:5432 -e POSTGRES_PASSWORD=123456 -e POSTGRES_USER=admin -e POSTGRES_DB=myapp postgres
    </div>
    <div class="read-more">
      <a href="/post/postgresql/postgresql-install/" class="read-more-link">阅读更多</a>
    </div>
  </div>
</article>

    </section>
  
  <nav class="pagination">
    <a class="prev" href="/page/2/">
        <i class="iconfont icon-left"></i>
        <span class="prev-text">上一页</span>
      </a>
    <a class="next" href="/page/4/">
        <span class="next-text">下一页</span>
        <i class="iconfont icon-right"></i>
      </a>
  </nav>
        </div>
        

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:lglspace@outlook.com" class="iconfont icon-email" title="email"></a>
  <a href="https://lglspace.cn/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  

  

  <span class="copyright-year">
    &copy; 
    2020 - 
    2021<span class="heart"><i class="iconfont icon-heart"></i></span><span>lglspace</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.a74e82b84b872f6b028df4e965781ddbba1606f0253b4fad5e4cf3913cf576eb.js"></script>






<script src="/js/site-custom.js"></script>


</body>
</html>
